
<table width="100%">
	<tr>		
		<td valign="top" width="100" style="padding: 5px">
		<div style="padding-bottom:4px;"><?php //include_partial('list_actions' ,array('helper' => $helper))?></div>
			<div id="my_folders_indicator" style="display: none">
			<?php echo image_tag('/images/indicator.gif') ?>&nbsp;&nbsp;<font color="red"><?php echo __('ждите')?>...</font>
			</div>
			    
			     <div id="my_folders"> <?php // include_component('folder_tools','show_folders');?> </div>	
			     
			     <div id="my_folders"> <?php include_component('folder_tools','show_folders',array('tools'=>false));?> </div>
			      
		</td>
				
		<td valign="top">
		   
		  
		   
		    <div id="forms">
		   
			
			<!--  Форма добаления материала   -->
			
			<div id="add_material_indicator" style="display: none">
			<?php echo image_tag('/images/indicator.gif') ?>&nbsp;&nbsp;<font color="red"><?php echo __('ждите')?>...</font>
			</div> 
			<div id="save_material_status"></div>
			<div id="add_material_form">
			
			</div>
			
			<!--  *************************   -->
			</div>
			
			
			<!--  Список материалов   -->
			
			
			
			
			
			<div id="material_indicator"  style="margin-top:100px; display: none" align="center">
			<?php echo image_tag('/images/ajax-loader.gif') ?>
			</div> 
			<div id="materials">
			
			
			<div id="sf_admin_content">
			<?php if(isset($pager)):?>
			    <form action="<?php echo url_for('material_collection', array('action' => 'batch')) ?>" method="post">
			    <?php include_partial('material/list', array('pager' => $pager, 'sort' => $sort, 'helper' => $helper)) ?>
			    <ul class="sf_admin_actions">
			      <?php include_partial('material/list_batch_actions', array('helper' => $helper)) ?>
			      <?php include_partial('material/list_actions', array('helper' => $helper)) ?>
			    </ul>
			    </form>
			<?php endif ?>
			
			<?php if(isset($form)):?>
			<div id="save_material_status"></div>
			<div id="add_material_form">
			<h1><?php echo __('Редактирование материала', array(), 'messages') ?></h1>

            <?php include_partial('material/flashes') ?>
			<?php include_partial('material/form', array('material' => $material, 'form' => $form, 'configuration' => $configuration, 'helper' => $helper,'mat_id'=>@$mat_id)) ?>
			</div>
			<?php endif ?>
			
  </div>
			
			
			</div>
			
			
			<!--  *************************   -->
		
		</td>				
		
	</tr>
	
</table>